export const useRowActive = (callback?: (_active: number) => void) => {
  const active = ref(-1);
  return (_record, index) => {
    return {
      onClick: () => {
        if (active.value == index) {
          active.value = -1;
        } else {
          active.value = index;
        }
        callback?.(active.value)
      },
      class: active.value == index && 'row-active',
    };
  };
};
